#include "ZigBee3QueryVersionCmd.h"

Zigbee3QueryVersionCmd::Zigbee3QueryVersionCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeConfigProtocol;
    this->m_functionCode = FunctionCode;
}

Package Zigbee3QueryVersionCmd::toPackage()
{
    Package package;
    package.clear();
    package.setFunction(FunctionCode);
    return package;
}

void Zigbee3QueryVersionCmd::unPackage(Package package)
{
  m_ZigbeeVersion=package.body();
}

QByteArray Zigbee3QueryVersionCmd::zigbeeQueryBackData()const
{
    return m_ZigbeeVersion;
}
void Zigbee3QueryVersionCmd::setZigbeeQueryBackData(const QByteArray Data)
{
    m_ZigbeeVersion=Data;
}
